# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=partclone-utils
pkgver=0.4.3
pkgrel=1
pkgdesc="access and mount images made by partclone, ntfsclone and dd"
url="https://sourceforge.net/projects/partclone-utils/"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers automake autoconf"
subpackages="$pkgname-doc"
source="https://sourceforge.net/projects/partclone-utils/files/partclone-utils-$pkgver.tar.gz
	10-posix-close.patch
	20-u_int-to-uint.patch"
options="!check"

prepare() {
	default_prepare
	autoreconf -i
}

build() {
	./configure \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install

}

sha512sums="2fd8a0fadc66086ef91be9cf727942ca4c041bd3a638aa97877d800dc950bce413f145084335695840b2976d352b8abeae113f435723f5e06712b0f1c0d0541d  partclone-utils-0.4.3.tar.gz
0ec02352f70d8c2a0080e1e20428cfb5156b62e586efac40f49c4b12c0f924675826eb42fb0e09f599c4609376a30ef62650e7d974dc44e1c5a88aaebe6ac5e1  10-posix-close.patch
4ca550c635b44573ffa7a8223ae566bdb9cbd736d05583e6ba3f0a6eb9a44705e0dab8418bf789860d47b402b9bbfa13daf825167b8afb8c2ed9a7f4496b4f3e  20-u_int-to-uint.patch"
